package com.smartleanx.module.hrm.service.esign.temp.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * e签宝模板中的控件
 *
 * @author xzq
 * @since 2025-07-11 13:54:49
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "e签宝模板中的控件")
@TableName("hrm_e_temp_components")
public class HrmETempComponents implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "数据状态 0/删除 1/正常")
    @TableField(value = "data_status", fill = FieldFill.INSERT)
    private Integer dataStatus;

    @Schema(description = "控件id")
    @TableField("component_id")
    private String componentId;

    @Schema(description = "控件key")
    @TableField("component_key")
    private String componentKey;

    @Schema(description = "租户id")
    @TableField("tenant_id")
    private Long tenantId;

    @Schema(description = "创建者")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "修改者")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @Schema(description = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @Schema(description = "控件名称")
    @TableField("component_name")
    private String componentName;

    @Schema(description = "控件类型")
    @TableField("component_type")
    private Integer componentType;

    @Schema(description = "e签宝模板id")
    @TableField("e_sign_temp_id")
    private String eSignTempId;

    @Schema(description = "模板id")
    @TableField("temp_id")
    private Long tempId;

    @Schema(description = "对应添加控件时的componentId")
    @TableField("origin_custom_component_id")
    private String originCustomComponentId;

    @Schema(description = "是否必填")
    @TableField("required")
    private Integer required;

    @Schema(description = "填写方式 1/自动2/企业3/员工")
    @TableField("fill_in_type")
    private Integer fillInType;

    @Schema(description = "签署控件所属")
    @TableField("signer_role")
    private String signerRole;
}
